gnome.compile_schemas()
# appdata
-install_data('org.gtk.Demo4.appdata.xml', install_dir: gtk_appdatadir)
+configure_file(
+ input: 'org.gtk.Demo4.appdata.xml.in',
+ output: 'org.gtk.Demo4.appdata.xml',
+ configuration: appdata_config,
+ install_dir: gtk_appdatadir
+)
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<component type="desktop">
- <id>org.gtk.Demo4.desktop</id>
- <metadata_license>CC0-1.0</metadata_license>
- <project_license>LGPL-2.0+</project_license>
- <name>GTK Demo</name>
- <summary>Program to demonstrate GTK functions</summary>
- <description>
- <p>
- GTK Demo is a collection of examples that demonstrate the major
- features of the GTK toolkit.
- </p>
- </description>
- <screenshots>
- <screenshot>
- <image>https://static.gnome.org/appdata/gtk4-demo/gtk-demo1.png</image>
- <caption>The main window</caption>
- </screenshot>
- <screenshot>
- <image>https://static.gnome.org/appdata/gtk4-demo/gtk-demo2.png</image>
- <caption>An example</caption>
- </screenshot>
- </screenshots>
- <kudos>
- <kudo>AppMenu</kudo>
- <kudo>HiDpiIcon</kudo>
- <kudo>ModernToolkit</kudo>
- </kudos>
- <url type="homepage">https://www.gtk.org</url>
- <translation type="gettext">gtk-4.0</translation>
- <update_contact>matthias.clasen_at_gmail.com</update_contact>
- <developer_name>Matthias Clasen and others</developer_name>
- <releases>
- <release version="3.99.0" date="2020-07-30">
- <description>
- <p>A new developers snapshot towards GTK 4.0.</p>
- </description>
- </release>
- <release version="3.94.0" date="2018-06-25">
- <description>
- <p>A new developers snapshot towards GTK 4.0.</p>
- </description>
- </release>
- </releases>
-</component>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>org.gtk.Demo4.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>LGPL-2.0+</project_license>
+ <name>GTK Demo</name>
+ <summary>Program to demonstrate GTK functions</summary>
+ <description>
+ <p>
+ GTK Demo is a collection of examples that demonstrate the major
+ features of the GTK toolkit.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot>
+ <image>https://static.gnome.org/appdata/gtk4-demo/gtk-demo1.png</image>
+ <caption>The main window</caption>
+ </screenshot>
+ <screenshot>
+ <image>https://static.gnome.org/appdata/gtk4-demo/gtk-demo2.png</image>
+ <caption>An example</caption>
+ </screenshot>
+ </screenshots>
+ <kudos>
+ <kudo>AppMenu</kudo>
+ <kudo>HiDpiIcon</kudo>
+ <kudo>ModernToolkit</kudo>
+ </kudos>
+ <url type="homepage">https://www.gtk.org</url>
+ <translation type="gettext">gtk-4.0</translation>
+ <update_contact>matthias.clasen_at_gmail.com</update_contact>
+ <developer_name>Matthias Clasen and others</developer_name>
+ <releases>
+ <release version="@BUILD_VERSION@" date="@BUILD_DATE@">
+ <description>
+ <p>A new build of GTK.</p>
+ </description>
+ </release>
+ </releases>
+</component>
install_data('org.gtk.IconBrowser4.desktop', install_dir: gtk_applicationsdir)
# appdata
-install_data('org.gtk.IconBrowser4.appdata.xml', install_dir: gtk_appdatadir)
+configure_file(
+ input: 'org.gtk.IconBrowser4.appdata.xml.in',
+ output: 'org.gtk.IconBrowser4.appdata.xml',
+ configuration: appdata_config,
+ install_dir: gtk_appdatadir
+)
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<component type="desktop">
- <id>org.gtk.IconBrowser4.desktop</id>
- <metadata_license>CC0-1.0</metadata_license>
- <project_license>LGPL-2.0+</project_license>
- <name>GTK Icon Browser</name>
- <summary>Program to browse themed icons</summary>
- <description>
- <p>
- GTK Icon Browser is a simple application to show themed icons that
- are available on the system.
- </p>
- </description>
- <screenshots>
- <screenshot>
- <image>https://static.gnome.org/appdata/gtk4-icon-browser/gtk-icon-browser1.png</image>
- <caption>Icon Browser</caption>
- </screenshot>
- <screenshot>
- <image>https://static.gnome.org/appdata/gtk4-icon-browser/gtk-icon-browser2.png</image>
- <caption>Search</caption>
- </screenshot>
- </screenshots>
- <kudos>
- <kudo>HiDpiIcon</kudo>
- <kudo>ModernToolkit</kudo>
- </kudos>
- <url type="homepage">https://www.gtk.org</url>
- <translation type="gettext">gtk-4.0</translation>
- <update_contact>matthias.clasen_at_gmail.com</update_contact>
- <developer_name>Matthias Clasen and others</developer_name>
- <releases>
- <release version="3.99.0" date="2020-07-30">
- <description>
- <p>A new developers snapshot towards GTK 4.0.</p>
- </description>
- </release>
- <release version="3.94.0" date="2018-06-25">
- <description>
- <p>A new developers snapshot towards GTK 4.0.</p>
- </description>
- </release>
- </releases>
-</component>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>org.gtk.IconBrowser4.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>LGPL-2.0+</project_license>
+ <name>GTK Icon Browser</name>
+ <summary>Program to browse themed icons</summary>
+ <description>
+ <p>
+ GTK Icon Browser is a simple application to show themed icons that
+ are available on the system.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot>
+ <image>https://static.gnome.org/appdata/gtk4-icon-browser/gtk-icon-browser1.png</image>
+ <caption>Icon Browser</caption>
+ </screenshot>
+ <screenshot>
+ <image>https://static.gnome.org/appdata/gtk4-icon-browser/gtk-icon-browser2.png</image>
+ <caption>Search</caption>
+ </screenshot>
+ </screenshots>
+ <kudos>
+ <kudo>HiDpiIcon</kudo>
+ <kudo>ModernToolkit</kudo>
+ </kudos>
+ <url type="homepage">https://www.gtk.org</url>
+ <translation type="gettext">gtk-4.0</translation>
+ <update_contact>matthias.clasen_at_gmail.com</update_contact>
+ <developer_name>Matthias Clasen and others</developer_name>
+ <releases>
+ <release version="@BUILD_VERSION@" date="@BUILD_DATE@">
+ <description>
+ <p>A new build of GTK.</p>
+ </description>
+ </release>
+ </releases>
+</component>
)
)
+# appdata
+today = 'unknown'
+date = find_program('date',
+ required: false)
+if date.found()
+ r = run_command(date, '-I')
+ if r.returncode() == 0
+ today = r.stdout().strip()
+ endif
+endif
+
+appdata_config = configuration_data()
+appdata_config.set('BUILD_VERSION', meson.project_version())
+appdata_config.set('BUILD_DATE', today)
+
subdir('constraint-editor')
subdir('gtk-demo')
subdir('icon-browser')
endforeach
# appdata
-install_data('org.gtk.WidgetFactory4.appdata.xml', install_dir: gtk_appdatadir)
+configure_file(
+ input: 'org.gtk.WidgetFactory4.appdata.xml.in',
+ output: 'org.gtk.WidgetFactory4.appdata.xml',
+ configuration: appdata_config,
+ install_dir: gtk_appdatadir
+)
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<component type="desktop">
- <id>org.gtk.WidgetFactory4.desktop</id>
- <metadata_license>CC0-1.0</metadata_license>
- <project_license>LGPL-2.0+</project_license>
- <name>GTK Widget Factory</name>
- <summary>Program to demonstrate GTK functions</summary>
- <description>
- <p>
- GTK Widget Factory is a showcase of GTK widgets. It was
- originally created to help theme authors test their creations
- for completeness.
- </p>
- </description>
- <screenshots>
- <screenshot>
- <image>https://static.gnome.org/appdata/gtk4-widget-factory/gtk-widget-factory1.png</image>
- <caption>Page 1</caption>
- </screenshot>
- <screenshot>
- <image>https://static.gnome.org/appdata/gtk4-widget-factory/gtk-widget-factory2.png</image>
- <caption>Page 3</caption>
- </screenshot>
- </screenshots>
- <kudos>
- <kudo>AppMenu</kudo>
- <kudo>HiDpiIcon</kudo>
- <kudo>ModernToolkit</kudo>
- </kudos>
- <url type="homepage">https://www.gtk.org</url>
- <translation type="gettext">gtk-4.0</translation>
- <update_contact>matthias.clasen_at_gmail.com</update_contact>
- <developer_name>Matthias Clasen and others</developer_name>
- <releases>
- <release version="3.99.0" date="2020-07-30">
- <description>
- <p>A new developers snapshot towards GTK 4.0.</p>
- </description>
- </release>
- <release version="3.94.0" date="2018-06-25">
- <description>
- <p>A new developers snapshot towards GTK 4.0.</p>
- </description>
- </release>
- </releases>
-</component>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>org.gtk.WidgetFactory4.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>LGPL-2.0+</project_license>
+ <name>GTK Widget Factory</name>
+ <summary>Program to demonstrate GTK functions</summary>
+ <description>
+ <p>
+ GTK Widget Factory is a showcase of GTK widgets. It was
+ originally created to help theme authors test their creations
+ for completeness.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot>
+ <image>https://static.gnome.org/appdata/gtk4-widget-factory/gtk-widget-factory1.png</image>
+ <caption>Page 1</caption>
+ </screenshot>
+ <screenshot>
+ <image>https://static.gnome.org/appdata/gtk4-widget-factory/gtk-widget-factory2.png</image>
+ <caption>Page 3</caption>
+ </screenshot>
+ </screenshots>
+ <kudos>
+ <kudo>AppMenu</kudo>
+ <kudo>HiDpiIcon</kudo>
+ <kudo>ModernToolkit</kudo>
+ </kudos>
+ <url type="homepage">https://www.gtk.org</url>
+ <translation type="gettext">gtk-4.0</translation>
+ <update_contact>matthias.clasen_at_gmail.com</update_contact>
+ <developer_name>Matthias Clasen and others</developer_name>
+ <releases>
+ <release version="@BUILD_VERSION@" date="@BUILD_DATE@">
+ <description>
+ <p>A new build of GTK.</p>
+ </description>
+ </release>
+ </releases>
+</component>